<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="__PUBLIC__/admin_style/assets/ico/favicon.html">
    <link href="__PUBLIC__/admin_style/assets/css/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/admin_style/assets/css/theme.css" rel="stylesheet">
    <link href="__PUBLIC__/admin_style/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="__PUBLIC__/admin_style/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico">
</head>

<body>
	<div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="__PUBLIC__/admin_style/assets/img/logo.png" alt="Realm Admin Template">
          </div> 
         

          

        </div>
      </div>
    </div>

    <div class="container-fluid">

      <!-- Side menu -->  
     <include file="Public/menu"/>
      <!-- /Side menu -->

        <!-- Main window -->
    <div class="main_container" id="tables_page">
      <div class="row-fluid">
        <br>
        <h2 class="heading">
          修改     
        </h2>
      </div>

          <div class="row-fluid">
           <div class="widget widget-padding span12">
             
    <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>修改 </h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Documentation" class="tip" target="_blank"><i class="icon-external-link"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="tip collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  

 <div class="col-md-3  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
            <form  method="post"  class="form-horizontal" action="{:U(doUpdate)}"  enctype="multipart/form-data" onsubmit="return check();" >
            <table id="foods" class="table table-responsive">
            <tr>
            <input  type="hidden"  name="id" value="{$list.id}">
            </tr>
            <tr>
            <td style="overflow: hidden;display: block;width: 90px">美食名称：</td>
            <td><input class="form-control" type="text"  name="foods_name" value="{$list.foods_name}"></td>
            </tr>
            <tr>
            <td style="overflow: hidden;display: block;width: 90px">美食类型：</td>
            <!-- <td><input class="form-control"  name="tid"  type="text" value="{$list.tid}"></td> -->
           <td>
             <select  data-placeholder="Select here.." class="span7"
                               id="tid"  name="tid"  type="text" value="{$list.tid}" required >
                          <option value=""></option>
                          <option value="1">东北菜</option>
                          <option value="2">四川菜</option>
                          <option value="3">江浙菜</option>
                          <option value="4">广东菜</option>
                       </select>
                       </td>
            </tr>
            <tr>
            <td style="overflow: hidden;display: block;width: 90px">美食做法：</td>
            <td><input class="form-control"  name="intro" type="text" value="{$list.intro}"></td>
            </tr>

            </table>  
                <div class="fileupload fileupload-new" data-provides="fileupload">
                   <input type="hidden" value="{$list.picture}" name="pic" >
                          <div class="fileupload-new img-thumbnail"
                               style="width: 110px; height: 110px;background-color:#5f5f5f">
                              <img src="__PUBLIC__/Uploads/foodphoto/{$list.picture}">
                          </div>
                          <div class="fileupload-preview fileupload-exists img-thumbnail"
                               style="width: 110px; max-height: 110px;"></div>
                          
          <tr>
            <td style="overflow: hidden;display: block;width: 90px">美食图片：</td>
            <td><input class="form-control"  name="file" type="file" value="{$list.picture}"></td>
            </tr>

                      
                 <!--    <span class="btn btn-default btn-file">
                     <span class="fileupload-new">选择</span>
                     <span class="fileupload-exists">重选</span>
                     <input type="file" name="file" value="{$list.picture}">
                   </span>
                   <span>
                     <a class="btn btn-default fileupload-exists" data-dismiss="fileupload"
                               href="#">撤销</a>
                     </span> -->
                      </div> 
             <tr><td><button class="btn btn-danger" style="width: 120%; margin-top: 20px; text-align:center" type="submit">提交</button></td></tr>
            </form>
             </div>
          </div>
 <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='__PUBLIC__/admin_style/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='__PUBLIC__/admin_style/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='__PUBLIC__/admin_style/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='__PUBLIC__/admin_style/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/realm.js"></script>
  
<script type="text/javascript">
var oSelect=document.getElementByIdx_x_x("tid");
oSelect.onchange=function(){                                       //当选项改变时触发
var valOption=this.options[this.selectedIndex].value;//获取option的value
alert(valOption);
var txtOption=this.options[this.selectedIndex].innerHTML;//获取option中间的文本
alert(txtOption);
}
</script>





</body>
</html>